package com.example.professorevaluation.bean

import android.annotation.SuppressLint
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize

/**
 *@author: wangtianxiong
 *@time: 2022/3/29
 *@describe:
 *
 */

@Entity(tableName = "t_professor")
@SuppressLint("ParcelCreator")
@Parcelize
class ProfessorBean(): Parcelable {
    @PrimaryKey(autoGenerate = true)
     var id: Int = 0

    @ColumnInfo(name = "name")
    var name: String? = null

    @ColumnInfo(name = "university")
    var university: String? = null

    @ColumnInfo(name = "courses")
    var courses: String? = null

}